import React, { useEffect, useMemo, useState } from 'react';
import ShopList from './shopList';
import style from './index.less';


const ShopListTwo = ({ homeData }) => {
    const data = useMemo(() => {
        const dt = homeData.shopListTwo
        if (dt) {
            return [
                {
                    name: dt.layoutName,
                    Goods: dt.strcutData || []
                }
            ]
        }
        return []
    }, [homeData?.shopListTwo])

    return (
        <ShopList type="TWO" list={data} />
    )
}

export default ShopListTwo;